package com.hopu.service.impl;

import com.hopu.domain.ExtCproductC;
import com.hopu.domain.ExtCproductCExample;
import com.hopu.mapper.ExtCproductCMapper;
import com.hopu.service.ExtCproductCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * @author hp
 */
@Service
public class ExtCproductCServiceImpl implements ExtCproductCService {
    @Autowired
    ExtCproductCMapper extCproductCMapper;

    @Override
    public List<ExtCproductC> findAll(String extCproductId) {
        return extCproductCMapper.findAll(extCproductId);
    }

    @Override
    public ExtCproductC selectByPrimaryKey(String extCproductId) {
        return extCproductCMapper.selectByPrimaryKey(extCproductId);
    }

    @Override
    public int insert(ExtCproductC record) {
        return extCproductCMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(ExtCproductC record) {
        return extCproductCMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteByPrimaryKey(String extCproductId) {
        return extCproductCMapper.deleteByPrimaryKey(extCproductId);
    }

    @Override
    public List<ExtCproductC> selectByExample() {
        ExtCproductCExample extCproductCExample  = new ExtCproductCExample();
        return extCproductCMapper.selectByExample(extCproductCExample);
    }

    @Override
    public int deleteByContractProductById(String[] contractProductId) {
        return extCproductCMapper.deleteByContractProductById(contractProductId);
    }
}
